import { ref, computed } from 'vue'
import { defineStore } from 'pinia'

export const useSignIdStore = defineStore('signId',()=>{
    //定义状态的内容
    //响应式变量
    const signId = ref('');
    //修改token
    const setSignId=(newSignId)=>{
        signId.value = newSignId;
    }
    //移除token
    const removeSignId=()=>{
        signId.value = '';
    }
    
    return{
        signId,setSignId,removeSignId
    }
},
{
    persist: true //持久化存储
})